/**
 * kl yy-ds @2021
 */
package com.cxps.server.feign;

import com.cxps.cloud.enums.OrderStatus;
import com.cxps.cloud.message.ApiResponse;
import com.cxps.server.domain.order.OrderDetailsForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * TODO(类描述)
 *
 * @author YouCai.Liu
 * @since 2021/11/9
 * ...
 */
@FeignClient(value = "erp-order")
public interface FeignOrder {

    /**
     * 修改订单状态接口
     *
     * @param form
     * @return
     */
    @PostMapping("/order/submit")
    ApiResponse orderSubmit(@RequestBody OrderDetailsForm form);

    /**
     * 创建订单接口
     *
     * @param orderNum
     * @return
     */
    @GetMapping("/order/updateOrderStatus")
    ApiResponse updateOrderStatus(@RequestParam("orderNum") String orderNum, @RequestParam("orderStatus") OrderStatus orderStatus);
}
